﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace EZCRS.HCMS.Entity
{
    #region HCRS_Activelog
    /// <summary>
    /// 
    /// </summary>
    public class HCRS_Activelog
   {
        private int? _id;
        private int? _pid;
        private string _status;
        private DateTime? _offdate;
        private int? _offuid;
        private string _offremark;



        public HCRS_Activelog()
        {}


        public HCRS_Activelog(DataRow dr)
        {
            if (dr != null)
            {
                if(dr["id"].ToString()!="")_id=Convert.ToInt32(dr["id"].ToString());
                _status=dr["status"].ToString();
                if(dr["offdate"].ToString()!="")_offdate=Convert.ToDateTime(dr["offdate"].ToString());
                if(dr["offuid"].ToString()!="")_offuid=Convert.ToInt32(dr["offuid"].ToString());
                _offremark=dr["offremark"].ToString();
                _pid = Convert.ToInt32(dr["pid"].ToString());

            }
        }



        #region 公共属性 


         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("id", "pk")]
         public int? id
         {
             get { return _id; }
             set { _id = value; }
         }

         public int? pid
         {
             get { return _pid; }
             set { _pid = value; }
         }
         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("status")]
         public string status
         {
             get { return _status; }
             set { _status = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("offdate")]
         public DateTime? offdate
         {
             get { return _offdate; }
             set { _offdate = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("offuid")]
         public int? offuid
         {
             get { return _offuid; }
             set { _offuid = value; }
         }

         /// <summary>
         /// 
         /// </summary>
         [DataFieldAttribute("offremark")]
         public string offremark
         {
             get { return _offremark; }
             set { _offremark = value; }
         }



        #endregion


    }
    #endregion
}
